/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.Controller;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import src.Entities.Idioma;
import src.Entities.Pais;
import src.Entities.Programa;
import src.DAO.PaisDAO;

/**
 *
 * @author Felipe
 */
public class ListarCombosServlet extends HttpServlet
{

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException
    {
        response.setContentType("text/html;charset=UTF-8");
        PrintWriter out = response.getWriter();
        try
        {
        }
        finally
        {
            out.close();
        }
    }

    protected void doGet(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException
    {
        processRequest(request, response);
    }

    /**
     * Handles the HTTP <code>POST</code> method.
     * @param request servlet request
     * @param response servlet response
     */
    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
            throws ServletException, IOException
    {
//        List<Pais> listaPais;
//        List<Programa> listaPrograma;
//        List<Idioma> listaidioma;

//        try
//        {
////            DirectivaDAO direDAO = new DirectivaDAO();
////        ArrayList directiva = direDAO.listarDirectiva();
////        request.setAttribute("directivas" , directiva);
//
////            PaisDAO paisDAO = new PaisDAO ();
////            listaPais = paisDAO.listarPais();
////            request.setAttribute("listaPais", listaPais);
////            response.sendRedirect("IngresoAfiliado.jsp");
//
//
////            listaCliente = Consultas.ListarClientesTodos();
////            HtmlGenerator.datos = listaCliente;
//            response.sendRedirect("Clientes.jsp");
//        }
//        catch (SQLException ex)
//        {
//            Logger.getLogger(ListarCombosServlet.class.getName()).log(Level.SEVERE, null, ex);
//        }
    }


    @Override
    public String getServletInfo()
    {
        return "Short description";
    }
}
